package com.example.designer.ChainOfResponsibility.filter;

import com.example.designer.ChainOfResponsibility.Msg;

/**
 * @author zhaoyunlong
 * @date 2020/12/17
 * @description
 */
public class HTMLFilter implements Filter {

    @Override
    public void doFilter(Msg msg) {
        String r = msg.getMsg();
        r= r.replace('<', '[');
        r = r.replace('>', ']');
        msg.setMsg(r);
    }
}
